package com.sxt.opd.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2020-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("opd_guahao")
public class Guahao implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 挂号id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 1初诊2复诊
     */
    private Integer status;

    /**
     * 挂号类型/专家/普通
     */
    private String type;

    /**
     * 挂号价格
     */
    private Double guahaoprice;

    /**
     * 患者id
     */
    private Integer patientid;

    /**
     * 医生id,用户id
     */
    private Integer userid;

    /**
     * 挂号时间
     */
    
    private Date createtime;

    /**
     * 支付方式
     */
    private String paytype;
    /**
     * 操作人
     */
    private String operateperson;


    @TableField(exist=false)
    private Patient patient;
    /**
     * 医生名称
     */
    @TableField(exist=false)
    private String doctorname;
    /**
     * 部门名称,科室
     */
    @TableField(exist=false)
    private String menzhentitle;
    /**
     * 部门名称,科室id
     */
    @TableField(exist=false)
    private Integer deptid;


}
